package agent.teavitus;

import jade.core.Agent;
import jade.util.Logger;
import agent.AgentType;
import agent.teavitus.behaviour.TeavitusCyclicBehaviour;
import agent.util.AgentUtil;

/**
 * @author Margus Hanni
 *
 */
public class TeavitusAgent extends Agent {

	private static final Logger LOG = Logger.getJADELogger(TeavitusAgent.class
			.getName());
    private static final long serialVersionUID = 1L;

    @Override
    protected void setup() {
        super.setup();
        AgentUtil.registerByName(this, AgentType.TEAVITUS);

        addBehaviour(new TeavitusCyclicBehaviour(this));
        
    }

    @Override
    protected void takeDown() {
		LOG.info("Physician-agent " + getAID().getName() + " terminated");
    }
}
